﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data;
using MYNAMESPACE;

namespace final_project
{
     
    public partial class Employee : Form
    {
        private connect_db con;
        public string nm2;
        public string passvalue
        {

            get
            {
                return nm2;
            }
            set
            {
                nm2 = value;
            }

        }
        public Employee()
        {
            InitializeComponent();
        }

        private void Employee_Load(object sender, EventArgs e)
        {
            

        }

        private void User_Click(object sender, EventArgs e)
        {
            this.Hide();
            User U = new User();
            U.ShowDialog();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            EXchange_Currency EC = new EXchange_Currency();
            EC.ShowDialog();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            SaveFileDialog sf = new SaveFileDialog();
            sf.Filter = "Backup Files (*.Bak) | *.bak ";
            if(sf.ShowDialog()== DialogResult.OK)
            {
                con = new connect_db();
                con.sqlquery("Backup Database Bank_System To DiSk ='"+sf.FileName+"' ");
                con.sqlnonex();
            }
        }
    }
}
